package ooday01;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/21 16:13
 */
public class Car {
    String brand;
    String color;
    double price;
    Car(){

    }

    public Car(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }
    void start(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车启动了");
    }
    void run(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车跑起来了");
    }
    void stop(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车停止了");
    }
}
